22ba6becfc6ca768efc419d105e8b6da480d422f,library/src/main/java/org/dbtools/android/domain/RxAndroidBaseManagerWritable.java,RxAndroidBaseManagerWritable,update,#String#DBToolsContentValues#String#String[]#,260

Before Change


    }

    public int update(@Nonnull String databaseName, @Nonnull DBToolsContentValues contentValues, @Nullable String where, @Nullable String[] whereArgs) {
        return update(getWritableDatabase(databaseName), contentValues, where, whereArgs);
    }

    public int update(@Nonnull DatabaseWrapper db, @Nonnull DBToolsContentValues contentValues, @Nullable String where, @Nullable String[] whereArgs) {

After Change


//    }
//
//    public int update(@Nonnull DatabaseWrapper<? super AndroidBaseRecord, ? super DBToolsContentValues<?>> db, @Nonnull DBToolsContentValues<?> contentValues, @Nullable String where, @Nullable String[] whereArgs) {
        DatabaseWrapper<? super AndroidBaseRecord, ? super DBToolsContentValues<?>> db = getWritableDatabase(databaseName);

        int rowsAffectedCount = 0;

        checkDB(db);
        // Make sure that if there is an error (LockedException), that we try again.
        boolean success = false;
        for (int tryCount = 0; tryCount < MAX_TRY_COUNT && !success; tryCount++) {
            try {
                rowsAffectedCount = db.update(getTableName(), contentValues, where, whereArgs);
                success = true;
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }

        if (success && rowsAffectedCount > 0) {
            notifyTableListeners(false, db, new DatabaseTableChange(getTableName(), false, true, false));
        }

        return rowsAffectedCount;
    }

    public int delete(@Nullable T e) {